/**
 author: chengzheng
 date: 2018/1/4
 email: 13120207061@163.com
 */
var logger = require('log4js');

logger.configure({
    appenders: {
        out: {type: 'stdout'},
        cheese: {type: 'file', filename: '../logs/log.log'}
    },
    categories: {default: {appenders: ['out','cheese'], level: 'error'}}
});
var logger = logger.getLogger('spiderman');
logger.level = 'debug';
module.exports = logger;